<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册 - 浮点流觞</title>
    <link rel="stylesheet" href="ui.css">
    <link rel="stylesheet" href="auth.css">
</head>
<body>
<header class="auth-header">
    <div class="top-bar">
        <div class="logo-container">
            <!-- 新增返回首页链接 -->
            <a href="ui.html" class="logo-link">
                <span class="logo-text">浮点流觞</span>
            </a>
        </div>
        <div class="sub-nav">
            <a href="login.html" class="active">登录</a>
            <a href="register.html">注册</a>
            <!-- 新增主页链接 -->
            <a href="ui.html" class="home-link">返回首页</a>
        </div>
    </div>
</header>

<main class="auth-container">
    <div class="auth-card">
        <h2>用户注册</h2>
        <form id="registerForm">
            <div class="form-group">
                <label for="regUsername">用户名</label>
                <input type="text" id="regUsername" required>
                <div class="error-message"></div>
            </div>
            <div class="form-group">
                <label for="regEmail">电子邮箱</label>
                <input type="email" id="regEmail" required>
                <div class="error-message"></div>
            </div>
            <div class="form-group">
                <label for="regPassword">密码</label>
                <input type="password" id="regPassword" required>
                <div class="error-message"></div>
            </div>
            <div class="form-group">
                <label for="confirmPassword">确认密码</label>
                <input type="password" id="confirmPassword" required>
                <div class="error-message"></div>
            </div>
            <div class="form-group">
                <label for="phone">手机号码</label>
                <input type="tel" id="phone" required>
                <div class="error-message"></div>
            </div>
            <button type="submit" class="auth-btn">立即注册</button>
            <div class="auth-links">
                <span>已有账号？<a href="login.html">立即登录</a></span>
            </div>
        </form>
    </div>
</main>

<script src="auth.js"></script>
</body>
</html>